﻿
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPage.Master" EnableViewState="true"
    CodeBehind="wfProductoBnd.aspx.cs" Inherits="CO.wfProductoBnd" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <link href="../Styles/General.css" rel="stylesheet" type="text/css" />

    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../Scripts/General.js" type="text/javascript"></script>

    <script  type="text/javascript">
        function DevolverDatos(cod, pres, producto, presenta, um, peso_bruto) {
            opener.fDevolverSeleccion5(cod, pres, producto, presenta, um, peso_bruto);
        }
     </script>

    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">


        <input id="dummy" type="button" style="display: none" runat="server" />
        <asp:UpdatePanel ID="udpInnerUpdatePanel" runat="Server" UpdateMode="Conditional">
            <ContentTemplate>
                <table width="100%" cellpadding="0" cellspacing="2">
                    <tr>
                        <td colspan="3">
                            <div class="modalPopupHeader">
                                <asp:Label ID="lblTitlePopup" runat="server"></asp:Label>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td>
                            <table width="100%" cellpadding="0" cellspacing="2">
                                <tr>
                                    <td>
                                        <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                            <table width="100%" cellpadding="0" cellspacing="2">
                                                <tr>
                                                    <td style="width: 5px;">
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        Codigo
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtCodigo" runat="server" CssClass="esdTextBox" Width="100px" TabIndex="1"></asp:TextBox>
                                                    </td>
                                                    <td style="width:10px;">
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        Descripción
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtDes" runat="server" CssClass="esdTextBox" Width="300px" TabIndex="2"></asp:TextBox>
                                                    </td>
                                                    <td style="width: 10px;">
                                                        <asp:Button ID="btnBuscar" runat="server" Text="Buscar" CssClass="esdButtonStyle" Width="80px" onclick="btnBuscar_Click1" TabIndex="3" />
                                                    </td>
                                                    <td>
                                                       &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td style="width: 5px;">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>

                                    </td>
                                </tr>
                                <caption>
                                    <tr>
                                        <td>
                                            <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                                <table cellpadding="0" cellspacing="2" width="100%">
                                                    <tr>
                                                        <td>&nbsp; </td>
                                                    </tr>
                                                    <tr align="center">
                                                        <asp:GridView ID="gvListar" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="0" GridLines="None" onpageindexchanging="gvListar_PageIndexChanging" onrowdatabound="gvListar_RowDataBound" ShowFooter="True" Width="750px">
                                                            <AlternatingRowStyle CssClass="esdGridAlternativeRowStyle" />
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Codigo">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblMCLCodigo" runat="server" Text='<%# Bind("Codigo") %>'>
                                                                        </asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Pres">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblPres" runat="server" Text='<%# Bind("Pres") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Producto">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblProducto" runat="server" Text='<%# Bind("Producto") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Presenta">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblPresenta" runat="server" Text='<%# Bind("Presenta") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="tgxdef">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblTgxdef" runat="server" Text='<%# Bind("tgxdef") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Tipgasto">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblTipGasto" runat="server" Text='<%# Bind("tipgasto") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="UM">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblUM" runat="server" Text='<%# Bind("UM") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Peso Bruto">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblPesoBruto" runat="server" Text='<%# Bind("[Peso Bruto]") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Reserva">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblReserva" runat="server" Text='<%# Bind("reserva") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <a id="lnkSeleccionar" runat="server" href="javascript:void(0)">Seleccionar</a>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="50px" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <HeaderStyle CssClass="esdGridHeaderStyle" />
                                                            <PagerStyle CssClass="gridPagerStyle" />
                                                            <RowStyle CssClass="esdGridRowStyle" />
                                                            <SelectedRowStyle CssClass="esdGridSelectedRowStyle" />
                                                        </asp:GridView>
                                                        <td></td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                </caption>
                            </table>
                        </td>
                    </tr>
                </table>
                </td>
                <td style="width: 5px;">&nbsp; </td>
                </tr>
                <tr>
                    <td style="width: 5px;">&nbsp; </td>
                    <td align="right">&nbsp;</td>
                    <td style="width: 5px;">&nbsp; </td>
                </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:HiddenField ID="hdnidCliProv" runat="server" />
    </asp:Content>